<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<t:wrapper title="Courses in the category ${category.name}">
	<jsp:body>
		<a href="<c:url value="/category/overview" />">&laquo; <spring:message code="content.general.back"/></a>
		<c:choose>
			<c:when test="${courses.size() > 0}">
				<ul id="overview">
					<c:forEach items="${courses}" var="course">
						<li><a href="<c:url value="/course/${course.id}"/>">${course.name}</a></li>
					</c:forEach>
				</ul>
			</c:when>
			<c:otherwise>
				<p><spring:message code="category.no_courses"/>
			</c:otherwise>
		</c:choose>
	</jsp:body>
</t:wrapper>